]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Refresh folder preview when favorites change
authorShivam <shivamsingh5636@outlook.com>
Sat, 21 Feb 2026 12:22:35 +0000 (17:52 +0530)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:39:19 +0000 (18:39 +0100)
Pinning an app from inside a folder did not refresh the
folder preview. FolderIcon._sync() was only listening
to folder GSettings changes, while pinning updates the
favorites setting instead.

As a result, _sync() was never called and the preview
could show stale icons or remain visible when the folder
became empty.

Fix this by also connecting _sync() to
AppFavorites::changed, ensuring the folder preview
updates correctly when favorites are modified.

Closes : https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9026

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4088>
(cherry picked from commit e9f24200e22b7a2e311224c4f16f7f0488ce6a11)

js/ui/appDisplay.js

index 9e33cbd610800afc7f4d3ef439888e996cd5737f..02ddc949be014c63a69bd0867e87fd29860e3fe9 100644 (file)
@@ -2302,6 +2302,9 @@ export const FolderIcon = GObject.registerClass({
 
         this._folder.connectObject(
             'changed', this._sync.bind(this), this);
+        const appFavorites = AppFavorites.getAppFavorites();
+        appFavorites.connectObject(
+            'changed', this._sync.bind(this), this);
         this._sync();
     }